package com.government.article.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.government.app.bo.KeywordSearchBO;
import com.government.app.bo.KeywordSearchDetailsBO;
import com.government.app.vo.KeywordSearchDetailsVO;
import com.government.app.vo.KeywordSearchVO;
import com.government.article.bo.InformationCollectBO;
import com.government.article.domain.ArticleInformation;
import com.government.article.vo.GetHotInformationVO;
import com.government.article.vo.InformationCollectDetailVO;

/**
 * 文章资讯信息Mapper接口
 * 
 * @author system
 * @date 2023-09-20
 */
public interface ArticleInformationMapper extends BaseMapper<ArticleInformation>
{
    /**
     * 查询文章资讯信息
     * 
     * @param articleId 文章资讯信息主键
     * @return 文章资讯信息
     */
    public ArticleInformation selectArticleInformationByArticleId(Long articleId);

    /**
     * 查询文章资讯信息列表
     * 
     * @param articleInformation 文章资讯信息
     * @return 文章资讯信息集合
     */
    public List<KeywordSearchVO> selectArticleInformationList(KeywordSearchBO bo);

    /**
     * 查询文章资讯详情
     *
     * @return 文章资讯信息
     */
    public KeywordSearchDetailsVO selectArticleInformationDetails(KeywordSearchDetailsBO bo);

    /**
     * 根据条件查询资讯汇总
     * @param
     */
    List<InformationCollectDetailVO> getInformationCollect(InformationCollectBO bo);

    /**
     * 获取最新立项数据起始值
     * @return
     */
    ArticleInformation getProjectApprovalTime(Long policyId);

    /**
     * 获取热点资讯
     * @param type 1-申报   2-结果
     * @return
     */
    List<GetHotInformationVO> getHotInformation(int type);
}
